<?php
class MisInfoSongTest extends PHPUnit_Framework_TestCase
{
    public $info_song;

    function setUp()
    {
        $mis_pdes = array(
            'pdes_eid'  => 596,
			'co_code'   => 'TVB'
        );
        $this->info_song = new MisInfoSong($mis_pdes);
    }

    function tearDown()
    {
        unset($this->info_song);
    }

    function testExistsRelation()
    {
        $songs = array(
            '445'
        );
        $rs = $this->info_song->import($songs);
		$this->assertEquals(true, $rs);
    }

    function testNotExistsRelation()
    {
        $songs = array(
            '345'
        );
        $rs = $this->info_song->import($songs);
		$this->assertEquals(true, $rs);
    }
}
?>
